﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DuncanDAL;

namespace BLL.BudgetService
{
    /// <summary>
    /// 添加一个预算记录
    /// </summary>
    public class AddBudgetTransaction:ICommand
    {
        public AddBudgetTransaction(T_BudgetObject _BudgetObject)
        {
            budgetObject = _BudgetObject;
        }

        public AddBudgetTransaction()
        {
            
        }

        private T_BudgetObject budgetObject;

        public T_BudgetObject BudgetObject
        {
            get { return budgetObject; }
            set { budgetObject = value; }
        }

        #region ICommand 成员

        public void Execute()
        {
            BudgetDataService objBudgetDataService = new BudgetDataService();
            objBudgetDataService.Create(budgetObject);
        }

        #endregion
    }
}
